import org.antlr.runtime.*;
import java.lang.String;

public class plp2
{
	/**
	 * 
	 * @param args Argumentos de la línea de comandos.
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception
	{
		CharStream input = new ANTLRFileStream(args[0]);
		plp2Lexer lex = new plp2Lexer(input);
		CommonTokenStream tokens = new CommonTokenStream(lex);
		plp2Parser parser = new plp2Parser(tokens);
		parser.s();
		/*
		plp2Lexer lex = new plp2Lexer(new ANTLRFileStream(args[0]));
		CommonTokenStream tokens = new CommonTokenStream(lex);
		plp2Parser parser = new plp2Parser(tokens);
		try
		{
			String trad = parser.s(); // S es la regla inicial
			System.out.println(trad);
		} 
		catch (Exception e)
		{
			System.err.println(e.toString());
		}*/
	}
}
